package com.changgou.seckill.feign;

import com.changgou.entity.Result;
import com.changgou.seckill.pojo.SeckillGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author: HuangFu
 * @Date: 2020/2/23 11:10
 * @Description:
 */
@FeignClient(name = "seckill")
public interface SeckillGoodsFeign {
    /**
     * 根据时间查询当前秒杀商品
     * @param time
     * @return
     */
    @GetMapping("/seckillgoods/list")
    Result<List<SeckillGoods>> list(@RequestParam("time") String time);

}
